package xyz.cerberu.cet.resource.service;

import xyz.cerberu.cet.resource.dao.ResourceDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author β世界
 * Created on 9:38
 * @Description
 */
@Service
public class ResourceManagerServiceImpl {
    @Autowired
    private ResourceDao resourceDao;

    @Transactional(rollbackFor = Exception.class)
    public int deleteResourceByAnime(String ani_id) {
        int line = resourceDao.deleteResourceByAnime(ani_id);
        return line;
    }
}
